package net.ksic.common;

import android.content.Context;

public class LoginManager {
	Context context;
	boolean isLogin;
	
	PreferenceManager preferenceManager;

	public LoginManager(Context context) {
		this.context = context;

		preferenceManager = new PreferenceManager(context);
	}

	public boolean LoginBySessionKey() {
		if (RequestLoginBySessionKey()) // 로그인 성공시
			isLogin = true;
		else
			// 로그인 실패시
			isLogin = false;

		// isLogin = false;
		return isLogin;
	}
	
	private boolean RequestLoginBySessionKey()
    {
		if(preferenceManager.getLoginSessionKey().equals("session_key")){
			return true;
		} else {
			return false;
		}	
    }
}